package com.tt.controller;


import com.tt.entity.vo.EchartsMapBoxOfficeVO;
import com.tt.service.EchartsMapBoxOfficeService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;

/**
 * <p>
 * Echarts各省每周票房情况地图.需要定期更新.	每次更新已有内容即可. 前端控制器
 * </p>
 *
 * @author TP
 * @since 2023-03-04 09:14:11
 */
@RestController
@RequestMapping("/echarts")
public class EchartsMapBoxOfficeController {

    private final EchartsMapBoxOfficeService echartsMapBoxOfficeServiceImpl;

    public EchartsMapBoxOfficeController(EchartsMapBoxOfficeService echartsMapBoxOfficeServiceImpl) {
        this.echartsMapBoxOfficeServiceImpl = echartsMapBoxOfficeServiceImpl;
    }

    @GetMapping("/map")
    public ArrayList<EchartsMapBoxOfficeVO> getEchartsMap() {
        return echartsMapBoxOfficeServiceImpl.getEchartsMap();
    }
}
